<template>
  <div class="ARecharge">
    <div class="title">快速充值</div>
    <div class="tal_model">
      <div @click="getlist(0)" :class="{'activ':index==0}"><span class="iconfont f30 icon-custom-service"></span>客服充值</div>
      <div @click="getlist(1)" :class="{'activ':index==1}"><span class="iconfont f30 icon-zhifubaozhifu"></span>支付宝充值</div>
    </div>
    <div class="kh_Recharge" v-if="index==0">
      <div class="tltle1">
        <span>客服充值充值金额</span>请选择您要购买的金币数量，单笔充值额度越大，送的越多
      </div>
      <div @click="get_xueyi()" class="choice">
        <div><p v-if="xieyi"></p></div>
        <p>本人已满18周岁且具备完全行为能力，充值即代表同意<router-link target="_blank" tag="a" :to="{path:'/clause'}" >《相关条款》</router-link>和
        <router-link target="_blank" tag="a" :to="{path:'/privacy'}" >《隐私政策》</router-link>。盲盒娱乐请理性消费，切勿上头</p>
      </div>
      <div class="btn">立即充值</div>
    </div>
    <div class="zfb_Recharge" v-else>
      <div class="tltle1">
        <span>客服充值充值金额</span>请选择您要购买的金币数量，单笔充值额度越大，送的越多
      </div>
      <div class="quota-box">
        <ul>
          <li @click="get_quota(index,list)" v-for="(list , index) in money" :key="index" :class="{'activs':listac == index}">
            <p>{{list}}</p>
            <p>送{{list*0.02}}</p>
          </li>
        </ul>
      </div>
      <div  @click="get_xueyi()" class="choice" style="margin-top: 20px;">
        <div><p v-if="xieyi"></p></div>
        <p>本人已满18周岁且具备完全行为能力，充值即代表同意<router-link target="_blank" tag="a" :to="{path:'/clause'}" >《相关条款》</router-link>和
        <router-link target="_blank" tag="a" :to="{path:'/privacy'}" >《隐私政策》</router-link>。盲盒娱乐请理性消费，切勿上头</p>
      </div>
      <div class="tishi">
        <p>支付金额（人民币）约</p>
        <div>￥{{moneys}}</div>
      </div>
      <div class="btn">立即充值</div>
    </div>
  </div>
</template>

<script>
export default {
 data () {
    return {
      index:0,
      money:[1,2,3,4,5,6,7],
      listac:null,
      xieyi:false,
      moneys:'0',
    }
  },
  methods: {
    getlist(e){
      this.index = e
    },
    get_quota(e,k){
       this.listac = e;
       this.moneys = k;
    },
    get_xueyi(){
      this.xieyi ? this.xieyi =false : this.xieyi =true;
    }
  }
}
</script>

<style scoped>
  .tishi>div{
    font-size: 36px;
    color: #FFFFFF;
    text-align: left;
    margin-top: 25px;
    line-height: 30px;
  }
  .tishi{
    margin-top: 20px;
    padding-left: 20px;
  }
  .tishi>p{
    color: #999;
    text-align: left;
  }
  .activs{
    position: relative;
    border: 2px solid #7B9D00 !important;
  }
  .activs>p:nth-child(2){
    background-color: #435500 !important;
  }
  .activs::after{
    position: absolute;
    top: 0;
    right: 0;
    width: 33px;
    height: 29px;
    background-image: url(../../assets/AR-money-gou.png);
    background-size: 100% 100%;
    content:"";
    display: block;
  }
  .quota-box{
    width: 100%;
    margin-top: 38px;
  }
  .quota-box ul{
    display: flex;
    flex-wrap: wrap;
  }
  .quota-box ul li{
    width: 160px;
    height: 104px;
    border: 2px solid #777777;
    margin-right: 21px;
    margin-bottom: 15px;
    cursor: pointer;
  }
  .quota-box ul li p:first-child{
    height: 74px;
    line-height: 74px;
    font-size: 36px;
    font-weight: bold;
    color: #FFFFFF;
  }
  .quota-box ul li p:nth-child(2){
    height: 30px;
    line-height: 30px;
    font-size: 18px;
    color: #C5C8CE;
    background-color:rgba(255, 255, 255, 0.1);
  }
  .zfb_Recharge{
    margin-top: 30px;
  }
  .btn{
    width: 270px;
    height: 56px;
    line-height: 56px;
    background-color: #FFA22A;
    font-size: 22px;
    margin-top: 32px;
    cursor: pointer;
  }
  a{
    text-decoration: none;
    color: #893DA8;
  }
  .choice>div:first-child{
    width: 15px;
    height: 15px;
    border: 1px solid #999999;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1px;
    margin-right: 5px;
  }
  .choice>div:first-child p{
    width: 9px;
    height: 9px;
    background-color: #FFA22A;
    border-radius: 50%;
  }
  .choice>p{
    max-width: 800px;
  }
  .choice{
    display: flex;
    align-items: flex-start;
    margin-top: 130px;
    color: #999999;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
  }
  .tltle1 span{
    color: #FFFFFF;
    margin-right: 5px;
    font-size: 18px;
  }
  .tltle1{
    font-size: 14px;
    color: #999999;
    text-align: left;
  }
  .kh_Recharge{
    margin-top: 30px;
    width: 100%;
  }
  .f30{
    font-size: 30px;
    margin-right: 10px;
  }
  .tal_model>div>img{
    width: 30px;
    height: 30px;
    margin-right: 5px;
  }
  .tal_model>div{
    display: flex;
    width: 248px;
    height: 53px;
    background-image: url(../../assets/AR-icon-tal.png);
    background-size: 100% 100%;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
    cursor: pointer;
  }
  .activ{
    background-image: url(../../assets/AR-icon-tals.png) !important;
    color: #FFFFFF !important;
  }
  .tal_model{
    display: flex;
    margin-top: 37px;
  }
  .title{
    font-size: 22px;
    color: #FFFFFF;
    text-align: left;
  }
.ARecharge{
  padding: 60px 82px;
  min-height: 1000px;
}
</style>
